//
//  ZFNavigationController.swift
//  map
//
//  Created by fyzq on 2024/2/2.
//

import UIKit

class ZFNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }
  
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        
        if self.viewControllers.count > 0 {
            
            if (self.viewControllers.count == 1) {
                viewController.hidesBottomBarWhenPushed = true;
            }
        }else {
            viewController.hidesBottomBarWhenPushed = false;
        }
        super.pushViewController(viewController, animated: animated)
    }
    
}
